import requests

s = requests.session()
base_url = 'http://192.168.0.47'
headers = {'Content-Type': 'application/x-www-form-urlencoded'}
data = 'redirectURL=/TinyShop_v1.7/index.php&email=test@test.com&password=123456'
url = base_url + '/TinyShop_v1.7/index.php?con=simple&act=login_act'
r = s.post(url, data=data, headers=headers, allow_redirects=False)
print(r.text)
